package com.community.zhihuishequ.db;

import com.community.zhihuishequ.component.CommunityApplication;
import com.community.zhihuishequ.utils.TinyDB;

public class LoginCacheDb extends TinyDB {

    private static final String dbName = "LoginCache";

    public LoginCacheDb() {
        super(CommunityApplication.getContext(), dbName);
    }

    public LoginCacheDb setAccount(String account) {
        putString("account", account);
        return this;
    }

    public String getAccount() {
        return getString("account");
    }

    public LoginCacheDb setPassword(String password) {
        putString("password", password);
        return this;
    }

    public String getPassword() {
        return getString("password");
    }
}
